package com.tianji.learning.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "学习笔记表单信息")
public class NoteFormDTO {
    @ApiModelProperty("课程id")
    @NotNull(message = "课程id不能为空")
    private Long courseId;
    
    @ApiModelProperty("章id")
    @NotNull(message = "章id不能为空")
    private Long chapterId;
    
    @ApiModelProperty("节id")
    @NotNull(message = "节id不能为空")
    private Long sectionId;
    
    @ApiModelProperty("记录笔记时的视频播放时间")
    @NotNull(message = "视频播放时间不能为空")
    private Integer noteMoment;
    
    @ApiModelProperty("笔记内容")
    @NotBlank(message = "笔记内容不能为空")
    @Length(max = 3000, message = "笔记内容不能超过3000字符")
    private String content;
    
    @ApiModelProperty("是否是私密笔记")
    private Boolean isPrivate = false;


}